package sleepRandom;

import java.util.Random;

/**
 * @Author: dch
 * @Date: 2020/6/28 11:23
 * @Description: 随机暂停0-100ms
 */
public class random {

    public static void main(String[] args) {
        int timeToWait=100;
        int random = new Random().nextInt(timeToWait);
        try {
            Thread.sleep(random);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
